import 'package:exsun_plate_app/widget/home/home_page.dart';
import 'package:exsun_plate_app/widget/home/search/search_area.dart';
import 'package:exsun_plate_app/widget/home/search/search_car.dart';
import 'package:exsun_plate_app/widget/login/login_page.dart';
import 'package:exsun_plate_app/widget/splash/splash_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

/// 程序入口
void main() {
  runApp(new MaterialApp(
      debugShowCheckedModeBanner: false,
      routes: <String, WidgetBuilder>{
        '/SplashPage': (BuildContext context) => new SplashPage(),
        '/LoginPage': (BuildContext context) => new LoginPage(),
        '/HomePage': (BuildContext context) => new HomePage(),
        '/SearchPage': (BuildContext context) => new SearchPage(),
        '/SearchAreaPage': (BuildContext context) => new SearchAreaPage(),
      },
      home: new SplashPage()));

  SystemUiOverlayStyle systemUiOverlayStyle =
      SystemUiOverlayStyle(statusBarColor: Colors.transparent);
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}
